package com.usian.mapper;

import com.usian.pojo.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {

    List<User> findAll();

     @Select("select * from user where id=#{id}")
      User findById(Integer id);

    @Delete("DELETE FROM USER WHERE `id` = #{id}")
    void delete(Integer id);


    void add(User user);

    void update(User user);
}
